<div class="leiturasHs01s form">
<?php echo $this->Form->create('LeiturasHs01'); ?>
	<fieldset>
		<legend>Editar Leitura: <?php echo $estacao['nome'];?></legend>
	<?php
		echo $this->Form->input('precipitacao');
		echo $this->Form->input('sedimentos');
		echo $this->Form->input('nivel');
		echo $this->Form->input('vazao');
		echo $this->Form->input('bateria');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink('Deletar', array('action' => 'delete', 'colaborador' => true, $this->Form->value('LeiturasHs01.sequencia'), $this->Form->value('LeiturasHs01.estacao_id'),  str_replace(':','|',$this->Form->value('LeiturasHs01.hora'))), null, 'Tem certeza que queres deletar esta leitura?'); ?></li>
		<li><?php echo $this->Html->link('Listar leituras', array('action' => 'index', 'pesquisador' => true, $estacao['id'])); ?></li>
		<li><?php echo $this->Html->link('Listar Estações', array('controller' => 'estacoes', 'action' => 'index', 'pesquisador' => true)); ?> </li>
		<?php if ($hasPermission['admin']): ?>
			<li><?php echo $this->Html->link('Nova Estação', array('controller' => 'estacoes', 'action' => 'add', 'admin' => true)); ?> </li>
		<?php endif; ?>
	</ul>
</div>
